package com.idanchuang.income;

import java.io.Serializable;
import java.time.YearMonth;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BrandMonthlyRate implements Serializable {
    static final long serialVersionUID = 0L;
    private Map<YearMonth, List<BrandInfo.BrandIncomeMonthlyRate>> brandsMonthlyRate;

    public BrandMonthlyRate() {
        this.brandsMonthlyRate = new HashMap<>();
    }

    public void addRate(YearMonth month, List<BrandInfo.BrandIncomeMonthlyRate> rates) {
        this.brandsMonthlyRate.put(month, rates);
    }

    public List<BrandInfo.BrandIncomeMonthlyRate> getMonthlyRate(YearMonth month) {
        return brandsMonthlyRate.get(month);
    }
}
